package mysql

import (
	"MyBlogs/models"
	"fmt"
)

func GetAdmin(name string) models.Manage {
	var ret models.Manage
	err := Conn.Table("manage").Where("name = ?", name).Find(&ret).Error
	if err != nil {
		fmt.Printf(err.Error())
	}
	return ret
}
